<?php



class ProductCategoryProductMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ProductCategoryProductMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(ProductCategoryProductPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(ProductCategoryProductPeer::TABLE_NAME);
		$tMap->setPhpName('ProductCategoryProduct');
		$tMap->setClassname('ProductCategoryProduct');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('CATEGORY_IDEN', 'CategoryIden', 'VARCHAR' , 'product_category', 'IDEN', true, 20);

		$tMap->addForeignPrimaryKey('PRODUCT_IDEN', 'ProductIden', 'VARCHAR' , 'product', 'IDEN', true, 20);

	} 
} 